package CreationalPatterns.AbstractFactory;

public class ShapeFactory extends AbstractFactory {
  @Override
  public Shape getShape(String shapeType) {
    if (shapeType == null){
      return null;
    }
    if (shapeType.equalsIgnoreCase("circle")){
      return new Circle();
    }
    if(shapeType.equalsIgnoreCase("rectangle")){
      return new Rectangle();
    }
    return null;
  }

  @Override
  public Color getColor(String colorType) {
    return null;
  }
}
